<?php
/**
 * twitter_widget_list.inc
 * Widget: Display a list of tweets.
 * @copyright	Copyright(c) 2002-2010 Bjorn Winberg
 * @author		Bjorn Winberg <cms@anomalye.net>
 * @license		http://www.gnu.org/licenses/gpl.html GNU General Public License version 2
 * @package		AnomalyWiki
 */
	$this->mSystem->mHtmlHeaders[] = '<link type="text/css" href="' . $this->getSkinUrl('twitter_widget_list.css') . '" rel="stylesheet" />';
?>
<div class="twitterBox">
<ul>
<?php
	foreach($aParams['tweetList'] as $item){ 
		echo '<li>' . $this->linkifyTwitterTags(htmlspecialchars_decode($item['content'])) . '<span class="twitterDateTag">[' . $item['author'] . '@' . $this->generateTimeScript($item['timestamp'], '', '', '', false) . ']</span></li>';
	}
	/*echo '<div class="sectionHeader">' . $this->localString('L_HEADER') . '</div>';
	$style = false;
	foreach($aParams['list'] as $item){ 
		$style = $style == 'sectionRow1'? 'sectionRow2': 'sectionRow1';
		echo '<div class="' . $style . '">';
		echo '<div class="logsCol logsColTime">'. $this->generateTimeScript($item['time']) . '</div>';
		echo '<div class="logsCol logsColModule">'. $this->getSafeStr($item['module']) . '</div>';
		echo '<div class="logsCol logsColUser">'. $this->getSafeStr($item['user_name']) . '</div>';
		echo '<div class="logsCol logsColMessage">'. $item['message'] . '</div>';
		echo '</div>';
	}
	if(count($aParams['list']) == 0){
		echo $this->localString('L_NOITEMS');
	}
	else{
		echo $this->pagingGenerateFooter($aParams['logsPrev'], $aParams['logsNext']);
	}*/
?>
</ul>
</div>

